package cn.iocoder.yudao.module.system.controller.admin.mini.group.order.controller.admin.grouporder.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 团购订单 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class GroupOrderBaseVO {

    @Schema(description = "订单号", required = true)
    @NotNull(message = "订单号不能为空")
    private String orderCode;

    @Schema(description = "用户id", example = "4582")
    private Integer uid;

    @Schema(description = "用户名称", example = "张三")
    private String nickName;

    @Schema(description = "会员等级")
    private String vipLevel;

    @Schema(description = "奖品")
    private String prize;

    @Schema(description = "加入时间")
    private String addTime;

    @Schema(description = "商品信息")
    private String goods;

    @Schema(description = "团购商品id", required = true, example = "22772")
    @NotNull(message = "团购商品id不能为空")
    private Integer groupGoodsId;

    @Schema(description = "支付状态1已支付2未支付", example = "2")
    private Integer payStatus;

    @Schema(description = "支付时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime payTime;

    @Schema(description = "订单状态1进行中2已完成3已失效", example = "2")
    private Integer orderStatus;

}
